<div class="dux-box uk-clearfix uk-padding-small">
    <div class="img uk-float-left">
        <a href="{$info.goods_url}"><img src="{$info.goods_image}" width="80" height="80"></a>
    </div>
    <div class="uk-float-left uk-margin-small-left">
        <p><a href="{$info.goods_url}" target="_blank">{$info.goods_name}</a></p>
        <p>实付：<span class="uk-text-danger">￥{$info.price_total}</span></p>
        <p class="dux-text-disabled">
            <!--loop{(array)$info.goods_options as $v}-->
            {$v.value}
            <!--{/loop}-->
        </p>
        <p class="dux-text-disabled">购买时间: {date('Y-m-d H:i:s', $orderInfo.order_create_time)}</p>
    </div>
</div>
<br>
<div class="dux-box">
    <div class="box-header">退款申请</div>
    <div class="box-body uk-padding-small">

        <form class=" dux-form uk-form  uk-form-horizontal" action="{url('', ['action' => $action])}" method="post"
              data-dux="form-bind" data-advanced="false">
            <div class="uk-form-group">
                <label class="uk-form-label">退款类型</label>
                <div class="uk-form-controls uk-form-controls-text">
                    <div class="uk-grid">
                    <label>
                        <input type="radio" name="type" value="0" data-price="{$info.price_total}" checked> 仅退款
                    </label>
                    <label>
                        <input type="radio" name="type" value="1" data-price="{$info.price_total}"> 退款退货
                    </label>
                    <!--if{$orderRefund}-->
                    <label>
                        <input type="radio" name="type" value="2" data-price="{$orderInfo.pay_price}"> 整单退
                    </label>
                    </div>
                    <!--{/if}-->
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">退款原因</label>
                <div class="uk-form-controls uk-form-controls-text">
                    <select name="cause">
                        <option value="">请选择原因</option>
                        <!--loop{$causeList as $vo}-->
                        <option value="{$vo}">{$vo}</option>
                        <!--{/loop}-->
                    </select>
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">商品退款 <span class="dux-text-disabled">(最高<span id="price">{$info.price_total}</span>)</span></label>
                <div class="uk-form-controls uk-form-controls-text">
                    <input type="tel" name="price" required data-validation-message="退款金额不正确" max="{intval($info.price_total)}" value="{$info.price_total}">
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">运费退款 <span class="dux-text-disabled">(最高<span>{$deliveryPrice}</span>)</span></label>
                <div class="uk-form-controls uk-form-controls-text">
                    <input type="tel" name="delivery_price" required data-validation-message="退款金额不正确" value="{$deliveryPrice}">
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">退款描述 <span class="dux-text-disabled">(选填)</span></label>
                <div class="uk-form-controls uk-form-controls-text">
                    <textarea rows="3" placeholder="请填写退款描述,200字以内" name="content"></textarea>
                </div>
            </div>
            <div class="uk-form-group">
                <label class="uk-form-label">凭证 <span class="dux-text-disabled">(选填)</span></label>
                <div class="uk-form-controls uk-form-controls-text">
                    <ul class="dux-upload-list uk-clearfix">
                        <span id="images"></span>
                        <li>
                            <a href="javascript:;" class="add-img" data-dux="form-images" data-img-warp="#images"
                               data-img-name="images" data-num="5" data-tpl-el="#tpl" data-url="{url('member/Upload/index')}"></a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="uk-form-group">
                <div class="uk-form-controls uk-form-controls-text">
                    <input type="hidden" name="id" value="{$id}">
                    <button type="submit" class="uk-button uk-button-primary">提交申请</button>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="tpl">
    <li>
        <a href="{{ d.data.url }}" target="_blank"><img src="{{ d.data.url }}"></a>
        <i class="close">×</i>
        <input type="hidden" name="{{ d.name }}[]" value="{{ d.data.url }}">
    </li>
</script>